package com.yanqu.road.server.cmd.unioncampwar;

import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.pb.unionCampWar.UnionCampWar;
import com.yanqu.road.server.cmd.base.AbstractCommand;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.gameplayer.GamePlayer;
import com.yanqu.road.server.manger.player.GamePlayerMgr;
import com.yanqu.road.server.protocol.CrossProtocol;
import com.yanqu.road.server.protocol.GameProtocol;
import com.yanqu.road.utils.YanQuMessageUtils;


@Cmd(code = GameProtocol.S_UNION_CAMP_WAR_HOLD_REPORT_DETAIL, desc = "商帮个人战报")
public class UnionCampWarHoldReportDetailCmd extends AbstractCommand {
    @Override
    public boolean parseData(YanQuMessage packet) throws Exception {
        return true;
    }

    @Override
    public void execute(GamePlayer player, YanQuMessage packet) throws Exception {
        if (null == player) {
            return;
        }
        UnionCampWar.UnionCampWarPersonalReportReqMsg reqMsg = UnionCampWar.UnionCampWarPersonalReportReqMsg.parseFrom(packet.getBytes());

        GamePlayerMgr.sendPacket(player.getUserId(), YanQuMessageUtils.buildMessage(CrossProtocol.C3_UNION_CAMP_WAR_HOLD_REPORT_DETAIL, reqMsg));

    }

    @Override
    public void sendData(GamePlayer player) {
        if (null == player) {
            return;
        }

    }
}
